package routers

import (
	"bee_web/controllers"

	"github.com/astaxie/beego"
)

func init() {
	beego.Router("/", &controllers.MainController{})
	//注册/test路由
	//beego.Router("/test", &controllers.TestController{})
	//注册/test路由并映射处理方法
	//beego.Router("/test", &controllers.TestController{}, "get:test")

	//自动路由
	beego.AutoRouter(&controllers.TestController{})
}
